#include "Bsp.h"

void Init_Time0_SysTick(void) //1毫秒@11.0592MHz
{
    AUXR |= 0x80;   //定时器时钟1T模式
    TMOD &= 0xF0;   //设置定时器模式
    
    TL0 = 0xCD;
    TH0 = 0xD4;     //设置定时初始值

    ET0 = 1;        //使能定时器中断
    TF0 = 0;        //清除TF0标志
}

void Init_Bsp(void)
{
	//GPIO 初始化
    P0M0 = 0X00;
    P0M1 = 0X00;
    P1M0 = 0X00;
    P1M1 = 0X00;
    P2M0 = 0X00;
    P2M1 = 0X00;
    P3M0 = 0X00;
    P3M1 = 0X00;
    P4M0 = 0X00;
    P4M1 = 0X00;
    P5M0 = 0X00;
    P5M1 = 0X00;
	
	// 清除中断
	
    Init_Time0_SysTick();
}
